From: Keir Fraser Date: Wed, 5 Dec 2007 17:28:59 +0000 (+0000) Subject: Check block file existence. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14660 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=dc5b64fd6149123af9a1230eb2819a27e505e3a9;p=xen.git Check block file existence. Signed-off-by: Akio Takebe --- diff --git a/tools/examples/block b/tools/examples/block index 2f3a645d7a..cd7bd78107 100644 --- a/tools/examples/block +++ b/tools/examples/block @@ -220,6 +220,7 @@ case "$command" in # Canonicalise the file, for sharing check comparison, and the mode # for ease of use here. file=$(readlink -f "$p") || fatal "$p does not exist." + test -f "$file" || fatal "$file does not exist." mode=$(canonicalise_mode "$mode") claim_lock "block"